#include <stdint.h>
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/sleep.h>
#include <avr/wdt.h>
#include <avr/version.h>
#include <AVRBFLY.h>
#include "LCD_functions.h"
#include "LCD_driver.h"
#include "RTC.h"
#include "usart.h"
#include "ADC.h"
#include "dataflash.h"
#include <string.h>
#include "button.h"

#define CLEAR_LCD LCD_Clear();

uint32_t interval_desired = 3;
char PowerSaveTimeout = 30;     // Initial value, enable power save mode after 30 min
//unsigned char gButtonTimeout = FALSE;


int main(void)
{
	InitBoard();
	LCD_Init();
	ADC_init();
	//uint16_t adc_output = 0;
	sei();
	//RTC_init();
	Button_Init();
    PORTF |= (1<<PF3);  
    DDRF |=  (1<<DDF3);
	USARTinit(); 
	char Retrieved_data[12];
	char Save_data[12];
	unsigned int j;
	
	LCD_puts("FH Aachen", 1);
	//LCD_AllSegments(1);
   while (1) 
   {
		j=13;

		

	}
	return 0;
}
